
public class StringFunction {
	public static void main(String[] args){
		String s1 = "Welcome To Java";
		
		String s2 = new String("   \n   Welcome ToJava");
		String sAppend = s2 + "Test";
		
		String s3 = s2.intern();
		String rep = s1.replaceAll("Java", "Jawa Language");
		
		System.out.println("s1==s2 : " + (s1==s2));
		System.out.println("s2==s3 : " + (s2.equals(s3)));
		System.out.println("s1==s3 : " + (s1.equals(s3)));
		System.out.println((s2.intern() == s3.intern()));
		System.out.println(s1.compareTo(s2));
		
		System.out.println(sAppend);
	}
}
